<#include "/common/defaultEngine.html"/>
<@pageTheme mark="${config.optimize()?string('true', 'false')}">
<@header title="新增维修" bodyClass="white-bg" libs=["prism","bootstrapSelect","ueditor"]/>
<div class="wrapper wrapper-content ibox-content">
    <@form.form id="form-maintenance-add"  class="form-horizontal">
    <input  type="hidden" name="userId" value="${user.id}">
    <input  type="hidden" name="userName" value="${user.name}">
    <input  type="hidden" name="modelKey" value="${bpmTaskFrom.modelKey}">
    <div class="form-group">        <label class="col-sm-3 control-label"><@ctx.i18n text = "申请人"/>：
    </label>
        <div class="col-sm-8"><input name="applyUserName" class="form-control" type="text" value="${user.name}" readonly="true">
        </div>
    </div>
    <div class="form-group">        <label class="col-sm-3 control-label"><@ctx.i18n text = "销售员"/>：
       </label>
        <div class="col-sm-8"><input name="saleUserid" class="form-control" type="text"  readonly="true">
        </div>
     </div>
    <div class="form-group">        <label class="col-sm-3 control-label"><@ctx.i18n text = "销售订单编号"/>：
       </label>
        <div class="col-sm-8"><input name="saleOrderNumber" class="form-control" type="text"  readonly="true">
        </div>
     </div>
    <div class="form-group">        <label class="col-sm-3 control-label"><@ctx.i18n text = "车辆识别号"/>：
       </label>
        <div class="col-sm-8"><input name="outCarVin" class="form-control" type="text"  readonly="true">
        </div>
     </div>
    <div class="form-group">        <label class="col-sm-3 control-label"><@ctx.i18n text = "车型"/>：
       </label>
        <div class="col-sm-8"><input name="outCarVehicle" class="form-control" type="text"  readonly="true">
        </div>
     </div>
    <div class="form-group">        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "联系人"/>：
       </label>
        <div class="col-sm-8"><input name="orderCarContacts" class="form-control" type="text"  required>
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "计划入厂时间"/>：</label>
        <div class="col-sm-8">
            <div class="input-group date">
                <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                <input class="form-control time-input" name="orderCarPlanInTime"  data-type="date" data-format="yyyy-MM-dd" type="text"  required/>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "最晚交车时间"/>：</label>
        <div class="col-sm-8">
            <div class="input-group date">
                <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                <input class="form-control time-input" name="orderCarLastDeliveryTime"  data-type="date" data-format="yyyy-MM-dd" type="text"  required/>
            </div>
        </div>
    </div>
    <div class="form-group">        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "车辆位置"/>：
       </label>
        <div class="col-sm-8"><input name="orderCarPosition" class="form-control" type="text"  required>
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "要求或问题描述"/>：</label>
        <div class="col-sm-8">
            <textarea name="orderCarRemark" class="form-control" required></textarea>
        </div>
    </div>
               
    <div class="form-group">        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "车辆损失图片"/>：
       </label>
        <div class="col-sm-8"><input name="orderCarLossFilepath" class="form-control" type="text"  required>
        </div>
     </div>
<!--    <div class="form-group">-->
<!--        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "预计交车时间"/>：</label>-->
<!--        <div class="col-sm-8">-->
<!--            <div class="input-group date">-->
<!--                <span class="input-group-addon"><i class="fa fa-calendar"></i></span>-->
<!--                <input class="form-control time-input" name="commissionerPlanGiveTime"  data-type="date" data-format="yyyy-MM-dd" type="text"  required/>-->
<!--            </div>-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="form-group">        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "维修方法"/>：                               <i class="fa fa-question-circle-o" title="维修方法"></i>                                -->
<!--       </label>-->
<!--        <div class="col-sm-8"><input name="commissionerRepairMethod" class="form-control" type="text"  required>-->
<!--        </div>-->
<!--     </div>-->
<!--    <div class="form-group">        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "报价"/>：                               <i class="fa fa-question-circle-o" title="报价"></i>                                -->
<!--       </label>-->
<!--        <div class="col-sm-8"><input name="commissionerOffer" class="form-control" type="text"  required>-->
<!--        </div>-->
<!--     </div>-->
<!--    <div class="form-group">        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "报价单"/>：                               <i class="fa fa-question-circle-o" title="报价单"></i>                                -->
<!--       </label>-->
<!--        <div class="col-sm-8"><input name="commissionerOfferFilepath" class="form-control" type="text"  required>-->
<!--        </div>-->
<!--     </div>-->
<!--    <div class="form-group">        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "入场检查文件"/>：                               <i class="fa fa-question-circle-o" title="入场检查文件"></i>                                -->
<!--       </label>-->
<!--        <div class="col-sm-8"><input name="maintenanceCheckFilepath" class="form-control" type="text"  required>-->
<!--        </div>-->
<!--     </div>-->
<!--    <div class="form-group">        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "维修状态"/>：                               <i class="fa fa-question-circle-o" title="维修状态"></i>                                -->
<!--       </label>-->
<!--        <div class="col-sm-8"><input name="maintenanceStatus" class="form-control" type="text"  required>-->
<!--        </div>-->
<!--     </div>-->
<!--    <div class="form-group">        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "维修结算单"/>：                               <i class="fa fa-question-circle-o" title="维修结算单"></i>                                -->
<!--       </label>-->
<!--        <div class="col-sm-8"><input name="maintenanceSettlementFilepath" class="form-control" type="text"  required>-->
<!--        </div>-->
<!--     </div>-->
<!--    <div class="form-group">        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "总价"/>：                               <i class="fa fa-question-circle-o" title="总价"></i>                                -->
<!--       </label>-->
<!--        <div class="col-sm-8"><input name="maintenanceTotalPrice" class="form-control" type="text"  required>-->
<!--        </div>-->
<!--     </div>-->
<!--    <div class="form-group">-->
<!--        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "结算备注"/>：</label>-->
<!--        <div class="col-sm-8">-->
<!--            <textarea name="maintenanceSettlementMemo" class="form-control" required></textarea>-->
<!--        </div>-->
<!--    </div>-->
               
</@form.form>
</div>
<@footer>
    <script type="text/javascript">
        var prefix = baseURL + "bpm/maintenance"
        $("#form-maintenance-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            opt.warning("流程实例未启动，无法创建此申请单");
            return;
            if (opt.validate.form()) {
                opt.operate.save(prefix + "/add", $('#form-maintenance-add').serialize());
            }
        }
</script>
</@footer>
</@pageTheme>